/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.sunspotworld;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import javax.microedition.io.Connector;

import rpc.connection.StreamedRPC;

/**
 * 
 * @author ajc
 */
public class Main {

    public static void main(String[] args) throws IOException {

        InputStream in = Connector.openInputStream("serial://usb");
        OutputStream out = Connector.openOutputStream("serial://usb");
        StreamedRPC hsc = new StreamedRPC(in, out);
        hsc.start();

    }
}
